/**
 * 用户code 换取 session_key
 * @type {String}
 */
export const USER_SPECICAL_INFO = "userSpecialInfo";

/**
 * 用户信息
 * @type {String}
 */
export const USER_INFO = "userInfo";

export const CUSTOMER_INFO = "customerInfo";

export const CUSTOMER_HOTFIX = "customerHotfix";
/**
 * 系统信息
 * @type {String}
 */
export const SYSTEM_INFO = "systemInfo";

export const ADDRESS_ID = "addressId";

export const SEL_CLASS_CODE = "selClassCode";

export const SEL_ACTIVE_CODE = 'selActiveCode';
/**
 * 商户信息
 * @type {String}
 */

export const MERCHANT_INFO = "merchantInfo";

/**
 * 购物车信息
 * @type {String}
 */

export const CART_KEY = 'cartKey';

/**
 * 视频播放信息
 * @type {String}
 */

export const VIDEO_PLAY = 'videoPlay';

/**
 * 低版本
 * @type {String}
 */

export const LOWER_WX_VERSION = '2.4.3';

/**
 * 会员信息
 */
export const MEMBER_INFO = 'memberInfo';

/**
 * globalData配置项
 * @type {Object}
 */

export const GLOBAL_CONFIG_JSON = {
  'store/system_config/store_version': {
    localKey: 'storeVersion',
    vuexKey: 'default'
  },
  'order/discount/open_limit_purchase': {
    localKey: 'openLimitPurchase',
    vuexKey: 'default'
  },
  'tracking/matomo/enable': {
    localKey: 'enableMatomo',
    vuexKey: 'default',
    isFather: true,
    childObj: {
      'tracking/matomo/report_url': {
        localKey: 'reportUrl',
        vuexKey: 'default'
      },
      'tracking/matomo/site_id': {
        localKey: 'siteId',
        vuexKey: 'default'
      },
    }
  },
  'tracking/matomo/report_url': {
    isSon: true,
    fatherKey: 'tracking/matomo/enable'
  },
  'tracking/matomo/site_id': {
    isSon: true,
    fatherKey: 'tracking/matomo/enable'
  },
  'service/youshu/open': {
    localKey: 'enableYoushu',
    vuexKey: 'default',
    isFather: true,
    childObj: {
      'service/youshu/open_outer_item_id': {
        localKey: 'openOuterItemId',
        vuexKey: 'default'
      }
    }
  },
  'service/youshu/open_outer_item_id': {
    isSon: true,
    fatherKey: 'service/youshu/open'
  },
  'store/information/logo': {
    localKey: 'storeLogo',
    vuexKey: 'changeStoreLogo'
  },
  'store/information/name': {
    localKey: 'storeName',
    vuexKey: 'changeStoreName'
  },
  'service/sms/signname': {
    localKey: 'signName',
    vuexKey: 'default'
  },
  'store/information/account_background': {
    localKey: 'background',
    vuexKey: 'default'
  },
  'store/tabs/available_tabs': {
    localKey: 'tabInfo',
    vuexKey: 'setTabInfo'
  },
  'store/store_design/global_image_scaling': {
    localKey: 'imageScaling',
    vuexKey: 'default'
  },
  'service/sms/templateid': {
    localKey: 'smsTemplateId',
    vuexKey: 'default'
  },
  'service/sms/platform': {
    localKey: 'smsPlatform',
    vuexKey: 'default'
  },
  'item/common/show_arrival_notice': {
    localKey: 'arrivalNotice',
    vuexKey: 'default'
  },
  'item/pdp/show_buy_now': {
    localKey: 'buyNow',
    vuexKey: 'default'
  },
  'order/checkout/show_promotion_tag': {
    localKey: 'showPromotionTag',
    vuexKey: 'default'
  },
  'order/common/audit_cancel_order': {
    localKey: 'showTimeTag',
    vuexKey: 'default'
  },
  'order/checkout/show_checkout_remark': {
    localKey: 'showCheckoutRemark',
    vuexKey: 'default'
  },
  'service/subscribe_message/new_product_sale_remind': {
    localKey: 'saleRemind',
    vuexKey: 'default',
    isFather: true,
    childObj: {
      'service/subscribe_message/on_sale_inform_in_advance_time': {
        localKey: 'advanceTime',
        vuexKey: 'changeAdvanceTime'
      },
      'service/subscribe_message/new_product_sale_template_id': {
        localKey: 'saleTemplate',
        vuexKey: 'changeSaleTemplate'
      },
    }
  },
  'service/subscribe_message/on_sale_inform_in_advance_time': {
    isSon: true,
    fatherKey: 'service/subscribe_message/new_product_sale_remind'
  },
  'service/subscribe_message/new_product_sale_template_id': {
    isSon: true,
    fatherKey: 'service/subscribe_message/new_product_sale_remind'
  },
  'review/enable': {
    localKey: 'commonEnable',
    vuexKey: 'default'
  },
  'payment/wosai_litepos/purchase_amount': {
    localKey: 'litPosPurchase',
    vuexKey: 'default'
  },
  'order/common/only_allow_pay_after_approve': {
    localKey: 'openAppointment',
    vuexKey: 'default'
  },
  'security/tencent_captcha/pdp_active_captcha': {
    localKey: 'captchaShowInfo',
    vuexKey: 'default'
  }
}
